-- change its location?

function onChoose(Source, id)
	Source:Team(Team:fromName(teams[id][1]))
	Source:Data("skin", teams[id][5])
	Source:Spawn() -- We can't do it from here, because the action depends on game state
end

onClientChooseTeam:Handle(onChoose)